<template>
  <div>
    <passNab :newList=list @getNewList='onChangeList' />
    <br>
    <h1>父组件拿到子组件修改后的参数</h1>
    {{newData}}
  </div>
</template>

<script>
import passNab from '@/components/passNab.vue'
export default {
  name: 'passView',
  components: {
    passNab
  },
  data () {
    return {
      list: [
        { Dto: '12', name: '张三' },
        { Dto: '53', name: '李四' },
        { Dto: '34', name: '王五' }
      ],
      newData: ''
    }
  },
  methods: {
    onChangeList (data) {
      this.newData = data
      console.log(data)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
